<?php
require_once('meekrodb.2.3.class.php');
if(!empty($_POST)) {
	$data = json_decode($_POST['trucks']);
	foreach($data as $obj) {
		$trucks[] = array(
			'name' => $obj->name,
			'href' => $obj->href,
			'workPhone' => $obj->workPhone,
			'afterHoursPhone' => $obj->afterHoursPhone,
			'other' => $obj->other
		);
		echo "<br><br>----------------------<br><br>";
		echo $obj->name . ' <br> '.$obj->href. '<br>  '.$obj->workPhone . ' <br> '. $obj->afterHoursPhone . ' <br> '. $obj->other;
	}

	//echo $_POST['trucks'];
}
?>
